<!DOCTYPE html>
<html lang="zh-CN">
<head>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="viewport" content="width=device-width, initial-scale=1">

	<link rel="stylesheet" href="{{url('js/admin/bootstrap.min.css')}}">

	<script type="text/javascript" src="{{url('bootstrap/js/bootstrap.min.js')}}"></script>
	<script type="text/javascript" src="{{url('bootstrap/js/jquery.min.js')}}"></script>
	<script type="text/javascript" src="{{url('bootstrap/js/bootstrap.js')}}"></script>



{{--<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">--}}
{{--<!-- saved from url=(0048)http://account.weibo.com/set/iframe?skin=skin048 -->--}}

{{--<html xmlns="http://www.w3.org/1999/xhtml">--}}

{{--<head>--}}

{{--<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">--}}

<!-- <link type="text/css" rel="stylesheet" charset="utf-8" href="frame.css"> -->

<link href="{{url('css/home/frame.css')}}" type="text/css" rel="stylesheet">
<link href="{{url('css/home/profile_pinfo.css')}}" type="text/css" rel="stylesheet">
<link href="{{url('css/home/layer_form_tips.css')}}" type="text/css" rel="stylesheet">
<link href="{{url('css/home/skin(1).css')}}" type="text/css" rel="stylesheet">

<!-- <link rel="stylesheet" href="{{url('css/home/frame.css')}}" /> -->
<title>个人资料页个人信息</title>
<link href="{{url('css/home/layer_search_school.css')}}" type="text/css" rel="stylesheet">

</head>
<body style="background:transparent;">
{{--<body style="background:black;">--}}
<!--个人信息-->
<div class="profile_pinfo" id="pl_content_account"> 



	<div class="infoblock" node-type="base_out"  >
	<form class="info_title"><fieldset class="S_line2"><legend class="tit S_txt1">基本信息</legend><div class="btns"><a class="W_btn_round" href="javascript:void(0)" action-type="edit" node-type="edit" action-data="edit=0"><span id="update" style="display:block">编辑</span></a> </div></fieldset></form>






	<!-- 显示部分 -->

	<div node-type="base_view" id="base_view" style="display:block">


		<div class="pf_item clearfix">



		<div class="label S_txt2" style="margin-top: 7px">登录名</div>



		<div class="con" > {{$res->u_tel}}

			<button type="button" class="btn btn btn-info" data-toggle="modal" data-target="#myModal" id="bbb" >
				修改密码
			</button>

			<!-- Modal -->
			<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
				<div class="modal-dialog" role="document">
					<div class="modal-content">
						<div class="modal-header">


				<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
						</div>
						<div class="" style="marigin-leift:50px">



				<p style="margin-top: 10px;margin-left: 120px;">请输入手机号码:<input  type="text" name='name' placeholder='手机号码' id="na" style="width:160px;height: 20px;margin-left: 5px">
					<a href="#"> <span id="duan">*获取短信</span> </a>      </p>

				<p style="margin-top: 10px;margin-left: 120px">请输入短信验证码: <input type="text" name='pid' value="" id="pid" style="width:160px;height: 20px;margin-left: 5px" > <a href="#" style="text-decoration:none;"  > <span id="dian" style="color: red;display: none">*点我验证</span> </a> </p>


<form action="{{url('home/mima')}}" method="post">

	{{csrf_field()}}

	   <p style="margin-top: 10px;margin-left: 120px;display: none" id="shu">请输入新密码: <input type="text" name='u_pwd' value="" id="new" style="width:160px;height: 20px;margin-left: 5px; " ></p>

	<input type="hidden" value="{{session('userid')}}" name="id">

						</div>
						<div class="modal-footer">
							<button type="button" class="btn btn-default" data-dismiss="modal">退出</button>
							<button type="submit" class="btn btn-primary">保存</button>
		</form>
						</div>
					</div>
				</div>
			</div>

			{{--end  motai--}}

			<script>

				duan.onclick=function() {

                    var tel = document.getElementById('na').value;
                    $.ajax({
                        type: 'get',
                        url: "{{url('home/sms')}}/" + tel,
                        success: function (data) {

                            console.log(data);
                        },
                        error: function () {
                            alert('请输入手机号码');
                        }

                    })
                }

                pid.onchange = function(){

				    dian.style.display = 'block';

				}

                //验证 验证码
				dian.onclick=function(){
                    var da = document.getElementById('pid').value;

                    var red = document.getElementById('dian');
                    $.ajax({
                        type: 'get',
                        url: "{{url('home/yan')}}/" + da,
                        success: function (data) {

                            if (data == 1){
                                red.innerHTML = '* 恭喜验证成功';
								red.style.color = '#17A05E';
                                shu.style.display = 'block';
							}

							if (data == 2){
                                red.innerHTML = '* 对不起!  验证失败';
                                red.style.color = 'red';
							}
                        },
                        error: function () {


                        }

                    })



				}


			</script>






		</div>
	</div>


	<div class="pf_item clearfix">
		<div class="label S_txt2" style="margin-top: 7px">昵&nbsp;&nbsp;称</div>
		<div class="con" node-type="nickname_view">{{$res->u_name}}</div>
	</div>


	<div class="pf_item clearfix">

		<div class="label S_txt2" style="margin-top: 7px">真实姓名</div>


		@if($res->d_real == null )
			<div class="con" node-type="blood_view"><a href="javascript:void(0)" action-type="quickedit" action-data="type=blood"><i class="W_ico16 icon_edit"></i>马上填写</a>自己的真实姓名,可以增加你的好感度哦</div>
		@else
			<div class="con" node-type="realname_view">{{$res->d_real}}</div>
		@endif

	</div>


	<div class="pf_item clearfix">
		<div class="label S_txt2" style="margin-top: 7px">所在地</div>

		@if($res->d_adres == null )
			<div class="con" node-type="blood_view"><a href="javascript:void(0)" action-type="quickedit" action-data="type=blood"><i class="W_ico16 icon_edit"></i>马上填写</a>自己的地址,可以交到更多的同城好友哦</div>

		@else

			<div class="con" node-type="city_view">{{$res->d_adres}}</div>
		@endif

	</div>


	<div class="pf_item clearfix">
		<div class="label S_txt2" style="margin-top: 7px"> 性&nbsp;&nbsp;别</div>


		@if($res->d_sex == null )
			<div class="con" node-type="blood_view"><a href="javascript:void(0)" action-type="quickedit" action-data="type=blood"><i class="W_ico16 icon_edit"></i>马上填写</a>自己的性别,可以让人更好的认识你捏</div>

		@else

			<div class="con" node-type="sex_view">  {{$res->d_sex == 1?'男':'女'}}   </div>
		@endif

	</div>







	<div class="pf_item clearfix">

	</div>


	<div class="pf_item clearfix">
		<div class="label S_txt2" style="margin-top: 7px">血型</div>

		@if($res->d_ox == null )
		<div class="con" node-type="blood_view"><a href="javascript:void(0)" action-type="quickedit" action-data="type=blood"><i class="W_ico16 icon_edit"></i>马上填写</a>自己的血型,可以被更多同血型的人找到哦</div>

		@else
			<div class="con" node-type="birth_view">{{$res->d_ox}}</div>
		@endif
	</div>


	<div class="pf_item clearfix">
		<div class="label S_txt2" style="margin-top: 7px">博客地址</div>

		@if($res->d_boke == null)
		<div class="con" node-type="blog_view"><a href="javascript:void(0)" action-type="quickedit" action-data="type=blog"><i class="W_ico16 icon_edit"></i>马上填写</a> 自己的博客地址,让自己的心声被更多的人了解</div>

		@else
			<div class="con" node-type="birth_view">{{$res->d_boke}}</div>
		@endif
	</div>



	<div class="pf_item clearfix">
		<div class="label S_txt2" style="margin-top: 7px">简介</div>

		@if($res->d_tag == null)
		<div class="con" node-type="desc_view"><a href="javascript:void(0)" action-type="quickedit" action-data="type=desc"><i class="W_ico16 icon_edit"></i>马上填写</a>自己的个人介绍,让大家快速了解真实的你</div>
		@else
			<div class="con" node-type="birth_view">{{$res->d_tag}}</div>
		@endif
	</div>


		<div class="pf_item clearfix">
		<div class="label S_txt2" style="margin-top: 7px">注册时间</div>
		<div class="con" node-type="desc_view">{{$res->u_regtime}}</div>
	</div>
		</div>

	</div>

		<!-- end 显示结束 -->




		
		<!-- 编辑部分 -->


<form action="{{url('home/info')}}">

	<div node-type="base">

	<div node-type="base_info"   id="base_out"  style="display:none">
	<div class="pf_item clearfix">
		<div class="label S_txt2">登录名</div>
		<div class="con">{{$res->u_tel}}<a href=" ">修改密码</a></div>
	</div>
	<div class="pf_item clearfix">
		<div class="label S_txt2"><span class="W_error">*</span>昵&nbsp;&nbsp;称</div>
		<input type="hidden" value="" name="">
		<input type="hidden" value="吃猫的老鼠vv3" name="oldnick" node-type="oldnick">

		<div class="con"><input node-type="nickname" action-type="text_copy" action-data="text=请输入昵称" name="d_name" class="W_input" value="{{$res->u_name}}"></div>
		<div class="status" node-type="nickname_tip" style="display: none;"></div>
	</div>
		<div class="pf_item clearfix">
		<div class="label S_txt2" node-type="realname_label"></div>

		</div>


		<div class="pf_item clearfix">
			<div class="label S_txt2"><span class="W_error"></span>真实姓名</div>
		@if($res->d_real == null)

				<input type="text" value="" name="d_real" style="margin-left:23px;" class="W_input"  >

			@else

				<input node-type="" action-type="text_copy" action-data="text=请输入真实姓名" name="d_real" class="W_input" value="{{$res->d_real}}" style="margin-left:23px" >
			@endif

		</div>



	<div class="pf_item clearfix">

		<div class="label S_txt2"><span class="W_error">*</span>所在地</div>
	{{--@if($res->d_ardes == null)--}}

		<input node-type="" action-type="text_copy" action-data="text=请输入昵称" name="d_adres" class="W_input" value="{{$res->d_adres}}" style="margin-left:23px" >

	</div>







	<div class="pf_item clearfix">
		<div class="label S_txt2"><span class="W_error">*</span>性&nbsp;&nbsp;别</div>

		<div class="con">
			<div class="input_check" node-type="gender_selector">

				@if($res->d_sex == 1)
				<span class="rsp">
					<label for="man_radio">
						<input id="man_radio" name="d_sex" type="radio" value="1" class="W_radio" checked="checked">男</label></span>

				<span class="rsp">
					<label for="woman_radio">
						<input id="woman_radio" name="d_sex" type="radio" value="2" class="W_radio">女</label></span>
				<div class="status" node-type="gender_tip" style="display: none;"></div></div></div>
	</div>

		@else
			<span class="rsp">
					<label for="man_radio">
						<input id="man_radio" name="d_sex" type="radio" value="1" class="W_radio" >男</label></span>

			<span class="rsp">
					<label for="woman_radio">
						<input id="woman_radio" name="d_sex" type="radio" checked="checked" value="2" class="W_radio">女</label></span>
			<div class="status" node-type="gender_tip" style="display: none;"></div></div></div>
</div>

     @endif



	<div class="pf_item clearfix">


		<div class="con"><div class="input_sel">
			</div>

			<!-- 生日 -->

	<!-- end生日 -->

		<div class="status" node-type="birthday_tip" style="display: none;"></div>
	</div>
	<div class="pf_item clearfix">

		<div class="label S_txt2 " node-type="blood_label">血型</div>
		<div class="con"><div class="input_sel">



		<select id="d_ox" name="{{$res->d_ox}}">
			<option value=""></option>
			<option value="A">A型</option>
			<option value="B">B型</option>
			<option value="AB">AB型</option>
			<option value="O">O型</option>
	    </select> &nbsp;</div></div>
		
	
	</div>
	<div class="pf_item clearfix">

		<div class="label S_txt2" node-type="blog_label">博客地址</div>
		<div class="con">

			@if($res->d_boke== null)
		<input node-type="blog" action-type="text_copy" name="d_boke"  id="boke"  class="W_input" value="">

			@else
				<input node-type="blog" action-type="text_copy" name="d_boke"  id="boke"  class="W_input" value="{{$res->d_boke}}">


			@endif
		 <span id="p1" style="display: none; color:red" >* 格式以:http:// 或 https://  xxxx.com </span>

		 </div> 
		<div class="status" node-type="blog_tip" style="display: none;"></div>
		
	</div>


	<div class="pf_item clearfix">
		<div class="label S_txt2" node-type="desc_label">简介</div>
		<div class="con">
		@if($res->d_tag == null)

			<textarea name="d_tag"  id="tag"  node-type="desc" action-type="text_copy"   cols="30" rows="10" class="W_input" maxlength="20"></textarea>

			@else

				<input type="text" value="{{$res->d_tag}}" name="d_tag" style="height: 20px">

		@endif

			<span id="p2" style="display: none; color:red" >* 最多输入20个字哟</span>    </div>
		<div class="status" node-type="desc_tip" style="display: none;"></div>
	</div>
	</div>
		</div>
	</div>

<input type="hidden" value="{{$res->d_id}}" name="d_id">

		<button id="btn" style="display: none;width: 60px;height: 25px; margin-left: 100px; border-radius:20px;">提交</button>


</form>





	<div class="infoblock" node-type="com_out">
	<form class="info_title"><fieldset class="S_line2"><legend class="tit S_txt1">联系信息</legend><div class="btns"><a class="W_btn_round" href="javascript:void(0)" action-type="edit" node-type="edit" action-data="edit=0"><span  id="comv" style="display:block" >编辑</span> </a></div></fieldset></form>



	<div node-type="com_view"  id="com_view"  style="display:block">
	<div class="pf_item clearfix">
		<div class="label S_txt2">邮箱</div>

		@if($res->d_email == null)

			<div class="con" node-type="email_view"><a href="javascript:void(0)" action-type="quickedit" action-data="type=qq"><i class="W_ico16 icon_edit"></i>马上填写</a>你的邮箱信息</div>

		@else

			<div class="con" node-type="email_view">{{$res->d_email}}</div>

		@endif


	</div>
	<div class="pf_item clearfix">
		<div class="label S_txt2">QQ</div>
		<div class="con" node-type="qq_view">

			@if($res->d_qq == null)
				<p><a href="javascript:void(0)" action-type="quickedit" action-data="type=qq"><i class="W_ico16 icon_edit"></i>马上填写</a>你的QQ信息</p>
			@else
				{{$res->d_qq}}
			@endif

		{{--<p><a href="javascript:void(0)" action-type="quickedit" action-data="type=qq"><i class="W_ico16 icon_edit"></i>马上填写</a>你的QQ信息</p>--}}
		</div>
	</div>
	<div class="pf_item clearfix">
		<div class="label S_txt2">MSN</div>
		<div class="con" node-type="msn_view">


			@if($res->d_email == null)
				<p><a href="javascript:void(0)" action-type="quickedit" action-data="type=msn"><i class="W_ico16 icon_edit"></i>马上填写</a>你的msn信息</p>
			@else
				{{$res->d_msn}}
			@endif


	</div>
	</div>

	</div>

		{{--联系信息form--}}

<form action="{{url('home/email')}}" method="post">
		{{csrf_field()}}
	<!-- 联系信息填写部分 -->
	<div node-type="com"  id="com_out" style="display:none">
	<div class="pf_item clearfix">

		<div class="label S_txt2" node-type="email_label">邮箱</div>

		@if($res->d_email == null)
			<div class="con"><input type="" name="d_email" node-type="email" action-type="text_copy" action-data="text=请输入邮箱地址&amp;must=false" class="W_input" value=""></div>
			@else

			<div class="con"><input type="" name="d_email" node-type="email" action-type="text_copy" action-data="text=请输入邮箱地址&amp;must=false" class="W_input" value="{{$res->d_email}}"></div>
		@endif
		<div class="status" node-type="email_tip"><div style="display:none" class="W_tips tips_del clearfix"></div></div>


		
	</div>
	<div class="pf_item clearfix">



		<div class="label S_txt2" node-type="qq_label">QQ</div>

	@if($res->d_qq == null)
		<div class="con"><input type="" name="d_qq" node-type="qq" action-type="text_copy" action-data="text=请输入QQ号&amp;must=false" class="W_input" value=""></div>

			@else
			<div class="con"><input type="" name="d_qq" node-type="qq" action-type="text_copy" action-data="text=请输入QQ号&amp;must=false" class="W_input" value="{{$res->d_qq}}"></div>
			@endif
		<div class="status" node-type="qq_tip"><div style="display:none" class="W_tips tips_del clearfix"></div>
		</div>




		
	</div>
	<div class="pf_item clearfix">

		<div class="label S_txt2" node-type="msn_label">MSN</div>

		@if($res->d_msn == null )
			<div class="con"><input name="d_msn" node-type="msn" action-type="text_copy" action-data="text=请输入msn&amp;must=false" class="W_input" value=""></div>

			@else

			<div class="con"><input name="d_msn" node-type="msn" action-type="text_copy" action-data="text=请输入msn&amp;must=false" class="W_input" value="{{$res->d_msn}}"></div>

			@endif

		<div class="status" node-type="msn_tip"><div style="display:none" class="W_tips tips_del clearfix"></div>
		</div>
		
	</div>
	
	 </div>
	</div>
<input type="hidden" value="{{$res->d_id}}" name="d_id">

<button id="btn1" style="display:none ;width: 60px;height: 25px; margin-left: 100px; border-radius:20px;">提交</button>

</form>
<!--/个人信息-->
{{--<script src="{{url('js/home/info.js')}}" type="text/javascript"></script>--}}


<script type="text/javascript">
	

   update.onclick =function(){

   		base_out.style.display = 'block';
   		base_view.style.display = 'none';

   		btn.style.display = 'block';

   		update.style.display = 'none';
   		bao.style.display = 'block';
   }


   comv.onclick = function(){

   	com_view.style.display = 'none';
   	com_out.style.display = 'block';

   	btn1.style.display = 'block';


   	comv.style.display = 'none';
   	baocun.style.display = 'block';

   }

   	boke.onfocus = function(){

   		p1.style.display='block';
   	}

   	boke.onblur = function(){
   		p1.style.display = 'none';
   	}


//
//   	tag.onkeydown = function() {
//			alert(666)
//   		var len = tag.value.length;
//
//   		if (len = 20) {
//
//   				p2.style.display = 'block';
//
//   		};
//
//   	}
//
//   	tag.onblur =function(){
//
//   		p2.style.display = 'none';
//   	}
//



//   sr1.onfocus = function(){
//
//       birth.style.display = 'block';
//   }
//   sr1.onblur=function(){
//       birth.style.display = 'none';
//   }

</script>



</div></body></html>